Using GPT Academic Optimization (gpt_academic)
- Open the gpt_academic/config.py file:
- Locate the API_KEY variable in config.py and enter the Key from this site:
- Scroll down to find the API_URL_REDIRECT variable in config.py. Modify it by copying the following code block directly:
API_URL_REDIRECT = {"https://api.openai.com/v1/chat/completions": "https://aihubmix.com/v1/chat/completions"}
4. Then you can use it